# -*- coding: utf-8 -*-
"""
@Time: 2022/2/23 11:31
@Author: jins
@File: 7.py
@Introduction: 
"""

# op = OperateRedis()
# res = op.get_name('DEVICE_CENTER:xnyz*')
# # for i in res:
# #     op.delete(i)
# print(len(res))
# tp = Topic()

names = ['xiaoming', 'xiaownag', 'xiaozhang', 'xiaoli', 'xiaochen']
ages = [20, 22, 31, 15, 16]
for name, age in zip(names, ages):
    print(name, age)

temp_zip = zip(names, ages)
print(temp_zip)
temp_d = {'a': 1}
print(temp_d.get('b', 123))

if (count := 2 + 2) > 2:
    print(123321)
